package com.andova.glcamera.texture

import android.graphics.SurfaceTexture

interface TextureFrameCallback {
    fun onSurfaceAvailable(width: Int, height: Int) {}
    fun onSurfaceSizeChanged(width: Int, height: Int) {}
    fun onSurfaceDestroyed(surfaceTexture: SurfaceTexture?) {}
    fun onTextureFrame(surfaceTexture: SurfaceTexture?, taskResult: Any?) {}
    fun onTaskFrame(imageWidth: Int, imageHeight: Int, nv21: ByteArray, handlerResult: Any?): Any?
}